function getAsyncData() {
    return new Promise(function (resolve, reject) {
        resolve('获取异步数据成功');
    })
}

getAsyncData().then(res => {console.log(res)})
